﻿using System;
using System.Data;
using System.Data.Common;
using Hxj.Data;
using Hxj.Data.Common;

namespace RecruitStudents.Utility.Model
{

	/// <summary>
	/// 实体类TB_Sys_ExamPlace_Limit 。(属性说明自动提取数据库字段的描述信息)
	/// </summary>
	[Serializable]
	public class TB_Sys_ExamPlace_Limit : Entity 
	{
		public TB_Sys_ExamPlace_Limit():base("TB_Sys_ExamPlace_Limit") {    _ExamProvince=Guid.NewGuid().ToString();}

		#region Model
		private string _ExamPlaceNO;
		private string _ExamProvince;
		/// <summary>
		/// 考点编号
		/// </summary>
		public string ExamPlaceNO
		{
			get{ return _ExamPlaceNO; }
			set
			{
				this.OnPropertyValueChange(_.ExamPlaceNO,_ExamPlaceNO,value);
				this._ExamPlaceNO=value;
			}
		}
		/// <summary>
		/// 限制省份
		/// </summary>
		public string ExamProvince
		{
			get{ return _ExamProvince; }
			set
			{
				this.OnPropertyValueChange(_.ExamProvince,_ExamProvince,value);
				this._ExamProvince=value;
			}
		}
		#endregion

		#region Method
		/// <summary>
		/// 获取实体中的主键列
		/// </summary>
		public override Field[] GetPrimaryKeyFields()
		{
			return new Field[] {
				_.ExamPlaceNO,
				_.ExamProvince};
		}
		/// <summary>
		/// 获取列信息
		/// </summary>
		public override Field[] GetFields()
		{
			return new Field[] {
				_.ExamPlaceNO,
				_.ExamProvince};
		}
		/// <summary>
		/// 获取值信息
		/// </summary>
		public override object[] GetValues()
		{
			return new object[] {
				this._ExamPlaceNO,
				this._ExamProvince};
		}
		/// <summary>
		/// 给当前实体赋值
		/// </summary>
		public override void SetPropertyValues(IDataReader reader)
		{
			this._ExamPlaceNO = DataUtils.ConvertValue<string>(reader["ExamPlaceNO"]);
			this._ExamProvince = DataUtils.ConvertValue<string>(reader["ExamProvince"]);
		}
		/// <summary>
		/// 给当前实体赋值
		/// </summary>
		public override void SetPropertyValues(DataRow row)
		{
			this._ExamPlaceNO = DataUtils.ConvertValue<string>(row["ExamPlaceNO"]);
			this._ExamProvince = DataUtils.ConvertValue<string>(row["ExamProvince"]);
		}
		#endregion

		#region _Field
		/// <summary>
		/// 字段信息
		/// </summary>
		public class _
		{
			/// <summary>
			/// * 
			/// </summary>
			public readonly static Field All = new Field("*","TB_Sys_ExamPlace_Limit");
			/// <summary>
			/// 考点编号
			/// </summary>
			public readonly static Field ExamPlaceNO = new Field("ExamPlaceNO","TB_Sys_ExamPlace_Limit","考点编号");
			/// <summary>
			/// 限制省份
			/// </summary>
			public readonly static Field ExamProvince = new Field("ExamProvince","TB_Sys_ExamPlace_Limit","限制省份");
		}
		#endregion


	}
}

